Skip to content

felix-hoc/ContentSpawner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ContentSpawner

Scriptable content spawner for Unity3D.

The media objects

... which you'd like to spawn have to be located in Resources folder. URL is path starting from there.

ScreenPlay definition file

The ScreenPlay definition file has to be in the same folder as the binary or in top folder of your project. It needs to be valid Json and have the following structure:

{
  "_screenPlayItems":[
		{
			"url":"bowling_noise",
			"delay":  {
				"seconds":2.0,
				"type":0
			},
			"type":1
		},
		{
			"url":"sunset_image",
			"delay":  {
				"seconds":1.0,
				"type":1
			},
			"type":2
		},
		...
	]
}

Item types:

0 .... unknown

1 .... Audio

2 .... Image

Delay types:

0 .... absolute to play command

1 .... relative to previous item

2 .... relative to previous item, but is spawned by a temporal offset (to allow sync with audio)

About

Scriptable contentspawner for Unity3D.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%