Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Use static var problem in 0.22?

Discussion in 'Project Tiny' started by kuailaiwanli, Mar 23, 2020.

  1. kuailaiwanli

    kuailaiwanli

    Joined:
    Apr 22, 2013
    Posts:
    47
    version 0.22

    AAA.cs is a Authoring script,convert gameobject to entity.
    I declare a static entity(object) in it,the converted value will assign to this static entity.

    BBB.cs is a system,I want to use "object" from AAA.cs.
    It seems not work , but I've watched some ECS tutorial oprated via this way.
     
  2. Ted_Wikman

    Ted_Wikman

    Unity Technologies

    Joined:
    Oct 7, 2019
    Posts:
    914
    Hello @kuailaiwanli ,
    Could you share some code of your implementation, so we can have a look?