Steps to reproduce
- Create an empty game.
- Create a simple structure like this:
-
referenceTest
(Locator
)-
light1
(Light
) -
trigger1
(Trigger
)
-
-
- Add the script
lightControllerScript
declared below tolight1
. - Set the
lightEntity
property tolight1
.
- Set up
trigger1
like this:-
onTriggerEnter
:light1/lightControllerScript/TurnOn
-
onTriggerExit
:light1/lightControllerScript/TurnOff
-
- Create a template of the whole
referenceTest
Locator
calledreferenceTestTemplate
.
- On the
referenceTest
Locator
, clickBreak template link
and clickBreak Link
Expected result
- The link to the template is broken.
- Entity references to
light1
still exist on bothtrigger1
andlight1/lightControllerScript
.
Actual result
- The link to the template is broken.
- Entity references on
trigger1
becomeMissing Entity
/ empty for bothonTriggerEnter
andonTriggerExit
:
- Entity references on
light1/lightControllerScript
'slightEntity
property becomes empty.
Frequency
5/5
lightControllerScript
local LightControllerScript = {}
LightControllerScript.Properties = {
{name = "lightEntity", type="entity", }
}
function LightControllerScript:Init()
end
function LightControllerScript:TurnOn()
self.properties.lightEntity.visible = true
end
function LightControllerScript:TurnOff()
self.properties.lightEntity.visible = false
end
return LightControllerScript